# 种树
clear()
size = get_world_size()
while True:
	for x in range(size):
		for y in range(size):
			if can_harvest():
				harvest()
            # 种树需要犁地
            if get_ground_type() != Grounds.Soil:
				till()
            
            if get_water() < 0.5:
				use_item(Items.Water)
			
            # 生成国际象棋棋盘
			if (x+y)%2 == 1:
				plant(Entities.Tree)
			else:
				plant(Entities.Grass)
				
			move(North)
		move(East)

		